package com.im.service.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.im.service.domain.dto.OrgUserDTO;
import com.im.service.domain.entity.ImOrg;
import com.im.service.mapper.RongHuiMapper;
import com.im.service.service.RongHuiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuzhiqiang
 */
@Service
@DS("rongHui")
public class RongHuiServiceImpl implements RongHuiService {

    @Autowired
    private RongHuiMapper rongHuiMapper;

    public List<ImOrg> orgList() {
        List<ImOrg> list = rongHuiMapper.orgList();
        return list;
    }

    @Override
    public List<OrgUserDTO> userList() {
        List<OrgUserDTO> list = rongHuiMapper.userList();
        return list;
    }
}
